#!/usr/bin/env bash

REPO_SERVER=192.168.20.160
TOOLS_DIR=/home/lavenliu/tools

yum --enablerepo=lanrepo --disablerepo=base,extras,updates,epel install -y keepalived

wget -O /etc/keepalived/keepalived.conf http://${REPO_SERVER}/conf/keepalived.conf_lb02

/etc/init.d/keepalived start
chkconfig keepalived on
